package com.skivingcloud.workflow.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 转授权表
 * </p>
 *
 * @author skivingcloud
 * @since 2022-03-03
 */
@TableName("wf_delegation")
@ApiModel(value = "Delegation对象", description = "转授权表")
public class Delegation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("转授权类型：受托流程转授权，委托流程转授权")
    private String delegationType;

    @ApiModelProperty("授权人id")
    private String authId;

    @ApiModelProperty("被授权人id")
    private String beAuthId;

    @ApiModelProperty("授权类别1:一般性代理,2:访问查看")
    private String authCatagory;

    @ApiModelProperty("授权开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty("授权结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty("委托原因")
    private String reason;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getDelegationType() {
        return delegationType;
    }

    public void setDelegationType(String delegationType) {
        this.delegationType = delegationType;
    }
    public String getAuthId() {
        return authId;
    }

    public void setAuthId(String authId) {
        this.authId = authId;
    }
    public String getBeAuthId() {
        return beAuthId;
    }

    public void setBeAuthId(String beAuthId) {
        this.beAuthId = beAuthId;
    }
    public String getAuthCatagory() {
        return authCatagory;
    }

    public void setAuthCatagory(String authCatagory) {
        this.authCatagory = authCatagory;
    }
    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }
    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }
    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    public String toString() {
        return "Delegation{" +
            "id=" + id +
            ", delegationType=" + delegationType +
            ", authId=" + authId +
            ", beAuthId=" + beAuthId +
            ", authCatagory=" + authCatagory +
            ", startTime=" + startTime +
            ", endTime=" + endTime +
            ", reason=" + reason +
        "}";
    }
}
